

<article class="module width_full">
    <header><h3>Cambiar Contrase&ntilde;a</h3></header>
    <div class="module_content">
        <form style="width: 600px;" class="cmxform" method="post" id="changePasswordForm" action="<?php echo $this->url(); ?>">
            <p>
                <label for="password">Contrase&ntilde;a actual</label>
                <input name="password" id="password" type="password"/>
            </p>
            <p>
                <label for="newpass">Nueva contrase&ntilde;a</label>
                <input name="newpass" id="newpass" type="password"/>
            </p>
            <p>
                <label for="confirm">Nueva contrase&ntilde;a</label>
                <input name="confirm" id="confirm" type="password"/>
            </p>

            <div class="clear"></div>

            <div class="submit_link">
                <input type="submit" value="Guardar" class="alt_btn"/>
            </div>
        </form>
    </div>
    <footer></footer>
</article>
<script language="javascript">
    $().ready(function() {
        $("#changePasswordForm").validate({
            rules: {
                password: "required",
                newpass: "required",
                confirm: {
                    required: true,
                    equalTo: "#newpass"
                }
            },
            messages: {
                password: "Ingrese su contraseña",
                newpass: "Nueva contraseña.",
                confirm: "Confirme contraseña."
            }
        });
    } );
    
</script>
